import { defineStore } from 'pinia'
import { ref } from 'vue'

export const companyInfoStore = defineStore(
    'companyInfo',
    () => {
        const companyInfo = ref('')
        const setCompanyInfo = (newCompanyInfo) => {
            companyInfo.value = newCompanyInfo
        }
        const removeCompanyInfo = () => {
            companyInfo.value = ''
        }
        return {
            companyInfo,
            setCompanyInfo,
            removeCompanyInfo
        }
    },
    {
        persist: true
    }
)
